package com.tech.koufu.model;

/**
 * 委托类
 * @author jl_luo
 *
 */
public class EntrustStock extends UserStocks  implements Comparable<UserStocks>{
	// 0:220917473346,000006,深振业Ａ,c,11.52,1,09:17:47  ,,,已报;
	//htxh,stock_code,stock_name,entrust_bs,price,amount,time,cj_price,cj_time,status;
	 public String htxh;
	 public String entrustBs;
	 public String amount;
	 public String price;
	 public String time;
	 public String cjPrice;
	 public String cjTime;
	 public String status;

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getHtxh() {
		return htxh;
	}

	public void setHtxh(String htxh) {
		this.htxh = htxh;
	}

	public String getEntrustBs() {
		return entrustBs;
	}

	public void setEntrustBs(String entrustBs) {
		this.entrustBs = entrustBs;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getCjPrice() {
		return cjPrice;
	}

	public void setCjPrice(String cjPrice) {
		this.cjPrice = cjPrice;
	}

	public String getCjTime() {
		return cjTime;
	}

	public void setCjTime(String cjTime) {
		this.cjTime = cjTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public int compareTo(UserStocks another) { 
		
		return another.getStockId().compareTo(this.getStockId());
	}
	@Override
	public boolean equals(Object obj) { 
		 if (obj instanceof UserStocks) {   
			 UserStocks u = (UserStocks) obj;   
	            return this.getStockId().equals(u.getStockId())   
	                     ;   
	        }   
		return super.equals(obj);
	}
}
